<div id="sidebar">
    <?php if(null !== $this->linkSideBar()): ?>
        <?php foreach ($this->linkSideBar() as $linkType) : ?>
            <?php if(!empty($linkType->links)) : ?>
    <h3><?php echo $this->escape($linkType->type->typeName) ?></h3>
    <div class="ul_list">
        <ul>
                        <?php foreach ($linkType->links as $link) : ?>
            <li><a href="<?php echo $this->escape($link->siteUrl) ?>" class='link-<?php echo $this->escape($link->linkId) ?>' title='<?php echo $this->escape($link->siteDesc) ?>'><?php echo $this->escape($link->siteName) ?></a></li>
                        <?php endforeach; ?>
        </ul>
    </div>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>

    <h3>关于本站</h3>
    <div class="ul_list">
        <p><a href="http://validator.w3.org/check?uri=referer"><img src="/public/image/logo/w3c.png" alt="Valid XHTML 1.0 Strict" /></a></p>
        <p><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" src="/public/image/logo/cc.png" /></a></p>
        <p><a href="http://nginx.net/"><img alt="This site is serverd by Nginx." src="/public/image/logo/nginx.gif" /></a></p>
        <p><a href="http://framework.zend.com/"><img alt="This site is powered by Zend Framework <?php echo $this->escape($this->zfversion) ?>." src="/public/image/logo/PoweredBy_ZF.png" /></a></p>
    </div>
</div>